<?

if(!defined('BASEPATH')) exit('No direct script access allowed!');

if(!function_exists('is_valid')){
	function is_valid($myobject){
		$myobject->form_validation->set_rules('name', 'Nama', 'required|max_length[30]');
		$myobject->form_validation->set_rules('note', 'Keterangan', 'required|max_length[255]');
		return $myobject->form_validation->run();
	}	
}
?>